package myoa.tool

import org.codehaus.groovy.grails.web.util.WebUtils

import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpSession

/**
 * make services know request and session
 */
class AbstractServletTool {
    protected final static HttpServletRequest getRequest() {
        WebUtils.retrieveGrailsWebRequest().getCurrentRequest()
    }

    protected final static HttpSession getSession() {
        request.session
    }
}
